import Vue from 'vue'
import VueRouter from 'vue-router'

const CleanerHome = ()=> import('@/views/CleanerWork/Home.vue')
const TrafficHome = ()=> import('@/views/TrafficEngineer/trafficHome.vue')
const TrackThePlayback = ()=> import('@/views/CleanerWork/TrackThePlayback.vue')

Vue.use(VueRouter)

const routes = [
  { path: '/cleaner', component: CleanerHome },
  { path: '/traffic', component: TrafficHome },
  { path: '/playback', component: TrackThePlayback }
]

const router = new VueRouter({
  routes,
  mode: 'history'
})

export default router
